|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jade.util.leap.SortedSetImpl
This class represents the J2SE version of a "SortedSet" implementation to be used in LEAP.
java.util.SortedSet,
java.util.TreeSet| Constructor Summary | |
SortedSetImpl()
Default Constructor, creates an empty Set, according to the elements' natural order. |
|
| Method Summary | |
boolean |
add(java.lang.Object o)
Adds an element. |
java.lang.Object |
first()
Returns the first (lowest) element currently in this sorted set. |
boolean |
isEmpty()
Checks if the collection contains elements. |
Iterator |
iterator()
Returns an iterator over the elements in this collection. |
boolean |
remove(java.lang.Object o)
Removes one instance of the specified element. |
int |
size()
Returns the number of elements in this collection. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public SortedSetImpl()
| Method Detail |
public boolean add(java.lang.Object o)
interfacepublic boolean isEmpty()
interfacepublic boolean remove(java.lang.Object o)
interfacepublic Iterator iterator()
interfacepublic java.lang.Object[] toArray()
interfacepublic int size()
interfacepublic java.lang.Object first()
interface
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||